div:nth-child(odd) {
  background-color: red;
}
